package com.vodone.v1pin.component.linklabel
{
	import flash.display.Graphics;
	
	import mx.controls.Label;
	
	public class MiddleLineLabel extends Label
	{
		public function MiddleLineLabel()
		{
			super();
		}
		
		protected override function updateDisplayList(w:Number, h:Number):void
		{
			super.updateDisplayList( w , h );
			var color:int = getStyle( "color" ) as int;
			var g:Graphics = this.graphics;
			g.clear();
			g.lineStyle( 1 , color );
			g.moveTo( 0 , height / 2 );
			g.lineTo( this.text.length * 8 , height / 2);
			this.invalidateDisplayList();
		}
	}
}